export default {
  isLogin: state => {
    console.log("is login", state.login.isLogin);
    if (state.login.isLogin) {
      return state.login.isLogin;
    } else {
      if (sessionStorage.getItem("token")) {
        console.log("token", sessionStorage.getItem("token"));
        return true;
      } else {
        return false;
      }
    }
  },
  token: state => state.login.token,
  user: state => state.login.user
};
